almost full implement of database
add database file argument