it compiles but produced database time out exception (?)