Robust tick database

Hello guys,

not sure if this is the wrong forum`s section.

However, for backtesting I have come across that one crucial tasks is to have a consistent and robust database of forex prices.

How do you set such a db up(for example writing into a postgresql/mysql db) or do you just use excel?