Framework work for live database connection