Access to DB but problem handling get and set