init database on start