got database connection on activity add working