Added support for database selection and basic table operations