change cadastrar() to database