DB Improvements

Moved the get code to services and started work on a select script