Added simple flat file database support