fix db init (lstrip and rstrip do not remove substrings, but lists of characters from either side of a string..)