modify database file and source code