Study to Database and Database to Study functionality