Connect to database, input to albums hash