Database class fully working.