add database and remove unnecessary files