add database and user struct