get a data in a database