more databse functions added