added database adapter and create db on launch screen