Got the db-input stuff working