Moved database details to Hash