finished first search towards the databse. Did some neat error handling.