database working. basic though