Initial Implement of Querying from DB