added database handeling files and begin to hook up adapter